package com.blog.service;

import com.blog.mapper.XaaaaaaMapper;
import com.blog.seckill.xaaaaaa.Xaaaaaa;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName XaaaaaaBaseService
 * @Destription  Xaaaaaa基础：增删改查
 * @Author 天堂小野花
 * @Date 2025/8/19  18:35
 * @Version 1.0
 */
@Service
public class XaaaaaaBaseService {
    @Autowired
    XaaaaaaMapper xaaaaaaMapper;
    //表 Xaaaaaa
    public Xaaaaaa selectXaaaaaaById(Long id){
        return xaaaaaaMapper.selectByPrimaryKey(id);
    }
    public int insertXaaaaaa(Xaaaaaa xaaaaaa){
        return xaaaaaaMapper.insert(xaaaaaa);
    }
    public int updateXaaaaaa(Xaaaaaa xaaaaaa){
        return xaaaaaaMapper.updateByPrimaryKeySelective(xaaaaaa);
    }
    public int deleteXaaaaaaById(Long id){
        return xaaaaaaMapper.deleteByPrimaryKey(id);
    }
}
